package com.nineclock.sign;

import com.nineclock.common.entity.PageResult;
import com.nineclock.common.entity.Result;
import com.nineclock.sign.dto.SignAllUserDTO;
import com.nineclock.sign.dto.SignDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;

@Api(value = "签到服务Api", description = "消息")
public interface SignControllerApi {

    @ApiOperation(value = "分页查询签到列表")
    public Result<PageResult> querySignListRecord(String startTime,String endTime,Integer page,Integer pageSize);
    @ApiOperation(value = "签到列表导出")
    public void exportData( String startTime, String endTime) throws IOException;

    @ApiOperation(value = "签到: 移动端签到")
    Result sign(SignDTO signDTO) throws ParseException;

    @ApiOperation(value = "获取当前用户当天签到次数")
    public Result<Integer> getDayCount();

    @ApiOperation(value = "获取团队员工打卡列表")
    public Result<List<SignAllUserDTO>> getListSignAllUser(String dateStr);

    @ApiOperation(value = "查询员工本月打卡记录")
    public Result<List<SignDTO>> queryHistoryCompanyUserById(String dateStr);
}